package com.gitee.shardingsphere.common.entity.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

import java.io.Serializable;

/**
 * @author YooLin1c
 */
public enum EnableStatusEnum implements IEnum {
    ENABLE(true, "启用"), LIMIT(false, "禁用");

    private boolean status;
    private String desc;

    EnableStatusEnum(final boolean status, final String desc) {
        this.status = status;
        this.desc = desc;
    }

    @Override
    public Serializable getValue() {
        return this.status;
    }

    @JsonValue
    public String getDesc() {
        return this.desc;
    }
}
